gdk: Fix shaped toplevels
authorAlexander Larsson <alexl@redhat.com>
Mon, 1 Jul 2013 13:31:19 +0000 (15:31 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 1 Jul 2013 13:34:15 +0000 (15:34 +0200)
We need to apply the shape for toplevels that have a shape.

https://bugzilla.gnome.org/show_bug.cgi?id=702831

gdk/gdkwindow.c

index 31842a71781a9f9018ac7714aa4da6e0db448da6..ea7542f568a1d2459145025b637103992105c4da 100644 (file)
@@ -812,8 +812,9 @@ should_apply_clip_as_shape (GdkWindow *window)
     gdk_window_has_impl (window) &&
     /* Not for offscreens */
     !gdk_window_is_offscreen (window) &&
-    /* or for toplevels */
-    !gdk_window_is_toplevel (window) &&
+    /* or for non-shaped toplevels */
+    (!gdk_window_is_toplevel (window) ||
+     window->shape != NULL || window->applied_shape) &&
     /* or for foreign windows */
     window->window_type != GDK_WINDOW_FOREIGN &&
     /* or for the root window */